/* 支付管理页面样式 */
:root {
    --primary-color: #271E4A;
    --secondary-color: #CA79C6;
    --red-accent: #FF706F;
    --light-bg: #EDF4FC;
    --white: #FFFFFF;
    --light-gray: #E0E9F4;
    --text-secondary: rgba(39, 30, 74, 0.8);
    --shadow: 0px 4px 15px rgba(216, 210, 252, 0.64);
    --action-shadow: 0px 4px 15px rgba(185, 178, 226, 0.64);
}

/* 支付表格容器 */
.payment-table-section {
    background-color: var(--white);
    border-radius: 47px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* 表格头部 */
.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.payment-header h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    color: var(--primary-color);
}

/* 搜索和过滤区域 */
.search-filter-section {
    background-color: var(--light-bg);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    width: 200px;
}

.search-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--action-shadow);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background-color: var(--red-accent);
    color: var(--white);
    border-color: var(--red-accent);
}

/* 表格样式 */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.payment-table thead {
    background-color: var(--light-bg);
}

.payment-table th {
    padding: 15px 10px;
    text-align: left;
    font-size: 14px;
    font-weight: 300;
    color: var(--primary-color);
    opacity: 0.9;
    border-bottom: 1px solid var(--light-gray);
}

.payment-table td {
    padding: 15px 10px;
    font-size: 14px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--light-gray);
}

.payment-table tbody tr {
    transition: background-color 0.3s;
}

.payment-table tbody tr:hover {
    background-color: rgba(216, 210, 252, 0.1);
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
    border: 1px solid var(--light-gray);
}

.status-indicator.paid {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.status-indicator.pending {
    background-color: var(--red-accent);
    border-color: var(--red-accent);
}

/* 操作按钮 */
.payment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: var(--white);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--action-shadow);
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn img {
    width: 16px;
    height: 16px;
}

/* 分页信息 */
.pagination-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.pagination-info p {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0;
}

/* 金额高亮 */
.amount {
    font-weight: 500;
    color: var(--primary-color);
}

.amount.large {
    color: var(--secondary-color);
    font-weight: 600;
}

/* 日期样式 */
.date-cell {
    white-space: nowrap;
}

/* 医生名称样式 */
.doctor-name {
    font-weight: 500;
}

/* 治疗项目样式 */
.treatment-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .payment-table {
        font-size: 12px;
    }
    
    .payment-table th,
    .payment-table td {
        padding: 10px 5px;
    }
    
    .treatment-name {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .search-filter-section {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-box {
        justify-content: center;
    }
    
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .payment-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .payment-table thead,
    .payment-table tbody,
    .payment-table th,
    .payment-table td,
    .payment-table tr {
        display: block;
    }
    
    .payment-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .payment-table tr {
        border: 1px solid var(--light-gray);
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
        background-color: var(--white);
    }
    
    .payment-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    
    .payment-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 500;
    }
} 